import fetches from "./request";
const { fetch } = fetches;
//判断系统报名是否开始
export let getSysZt = () => {
    return fetch("/api/Student/GetSysZt", 'get')
}
//学生登录接口
export let loginStudent = (data, key) => {
    return fetch(`/api/Student/Zmkm?key=${key}`, data, "post");
};
//学生注册
export let studReg = data => {
    return fetch("/api/Student/StudReg", data, "post");
};
//忘记密码
export let getPassword = (code, data) => {
    return fetch(`/api/Student/GetPassword?key=${code}`, data, "post")
}
//获取参数信息
export let getSysPara = data => {
    return fetch("/api/Student/GetSysPara", { key: data }, "get");
};
//获取字典库数据
export let getSysCode = data => {
    return fetch("/api/Student/GetSysCode", { type: data }, "get");
};
//获取项目信息
export let getProject = data => {
    return fetch("/api/Student/GetProj", data, "get");
};
//判断学生是否可修改信息、注销
export let getVerify = () => {
    return fetch("/api/Student/ReviseVerify", "get")
}
//获取学生信息
export let getStudInfo = () => {
    return fetch("/api/Student/GetStudInfo", {}, "get")
}
// 获取意向学校
export let getSchoolByBlock = data => {
    return fetch("/api/Student/GetSchoolByBlock", { blockCode: data }, "get")
}
//获取街道
export let getStreet = data => {
    return fetch("/api/Student/GetStreetByBlock", { blockCode: data }, 'get')
}
//获取小区
export let getCommunity = data => {
    return fetch("/api/Student/GetCommunityByStreet", { streetCode: data }, 'get')
}
//学生信息提交
export let submitStudInfo = data => {
    return fetch("/api/Student/SubmitStudInfo", data, "post")
}
//获取图片上传页面数据
export let getRegImageSet = () => {
    return fetch("/api/Student/GetRegImageSet", {}, "get")
}
//上传图片
export let uploadImage = (type, data) => {
    return fetch(`/api/Student/UploadImage?imageType=${type}`, data, "post")
}
//获取在线报名页数据
export let getStudSelection = () => {
    return fetch("/api/Student/GetStudSelection", "get")
}
//在线报名页数据提交
export let submitStudSelection = data => {
    return fetch("/api/Student/SubmitStudSelection", data, "post")
}
//获取打印信息
export let getStudPrint = () => {
    return fetch(`/api/Student/GetStudPrint`, "get")
}
//获取结果展示页信息
export let getStudResult = () => {
    return fetch("/api/Student/GetStudResult", "get")
}
//放弃学位/重置审核状态
export let updateRegInfo = data => {
    return fetch(`/api/Student/UpdateRegInfo?auditStatus=${data}`, {}, "post")
}

/** 
 * 延缓入学
 */


//延缓入学学生登录
export let delayLogin = (data, key) => {
    return fetch(`/api/Student/DelayZmkm?key=${key}`, data, "post");
}
//延缓入学学生注册
export let studDelayReg = data => {
    return fetch("/api/Student/studDelayReg", data, "post");
};
//忘记密码
export let getDelayPassword = (code, data) => {
    return fetch(`/api/Student/GetDelayPassword?key=${code}`, data, "post")
}
//获取学生信息数据
export let getStudDelayInfo = () => {
    return fetch('/api/Student/GetStudDelayInfo', 'get')
}
//获取延缓入学图片信息
export let getStudDelayImage = () => {
    return fetch("/api/Student/GetStudDelayImage", 'get')
}
// 延缓入学上传图片
export let uploadDelayImage = (type, data) => {
    return fetch(`/api/Student/UploadDelayImage?imageType=${type}`, data, 'post')
}
// 删除图片
export let delUploadImage = (id, type) => {
    return fetch(`/api/Student/DelUploadImage?id=${id}&type=${type}`, {}, 'post')
}
// 延缓入学信息提交
export let submitStudDelayInfo = data => {
    return fetch("/api/Student/SubmitStudDelayInfo", data, "post")
}
// 确认修改重置审核状态
export let updatePersonDelay = data => {
    return fetch(`/api/Student/UpdatePersonDelay?auditStatus=${data}`, {}, "post")
}

